<div id="content" class="w960 clearfix">
<!--左侧操作菜单项 -->
<?php $this->load->view_part($this->_site_path . '/member/left');?>
<!--左侧操作菜单项 -->

	<div id="mcpmain">
	      <div id="appTab">
	        <ul>
	          <li class="thisTab"><a href="javascript:void(0);"><span>发表</span></a></li>
	        </ul>        
	       </div>
	       <form action="<?php echo base_url($this->_site_path . '/member/article_operate/' . $flag . (isset($article['id'])?'/'.$article['id']:''));?>" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(this);">
		       <div id="mainCp">
		       	   <h3 class="meTitle"><strong>文章信息</strong></h3>
			       <div class="postForm">
				       <p class="cellBg">
				            <label>标题：</label>
				            <input name="title" type="text" id="title" value="<?php echo isset($article['title'])?$article['title']:'';?>" maxlength="100" class="intxt" />
				       </p>
				       <p>
				            <label>信息摘要：</label>
				            <textarea name="content" id="content" cols='80' rows='5'><?php echo isset($article['content'])?$article['content']:'';?></textarea>(内容的简要说明)
				       </p>
				       <p>
				       		<label>&nbsp;</label>
				       		<button id="btnSignCheck" class="buttonGreen142" type="submit">发 表 </button>
				       </p>
			       </div>
		       </div>
	       </form>
	</div>
</div>
<script type='text/javascript'>
function checkSubmit(form){
	if(form.title.value == ""){
		$('#title').focus();
		alert("标题不能为空！");
		return false;
	}
	if(form.content.value == ""){
		$('#content').focus();
		alert("内容不能为空！");
		return false;
	}
	return true;
}
</script>
